package com.centaline.androidsalesblog.api;

import android.support.v4.util.ArrayMap;

import com.centaline.androidsalesblog.base.BaseApi;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 微信 open api
 * Created by guilin on 16/4/11.
 */
public abstract class WxOpenApi<T> extends BaseApi<T> {

    public WxOpenApi(Class<?> tag, Class<T> aClass, IResponseListener<T> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    @Override
    protected ArrayMap<String, String> getHeaders() {
        ArrayMap<String, String> headers = new ArrayMap<>();
        headers.put("Accept-Encoding", "gzip");
        headers.put("Content-Type", "application/json; charset=UTF-8");
        return headers;
    }

    @Override
    protected String getIp() {
        return "https://api.weixin.qq.com/sns/";
    }
}
